import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
      home: Scaffold(
    appBar: AppBar(
      title: const Text("你好flutter"),
    ),
    body: const MyApp(),
  )));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text(
        "你好Flutter, 我是一个自定义组件",
        textDirection: TextDirection.ltr,
        // style: TextStyle(color: Colors.red),
        style: TextStyle(
          color: Color.fromARGB(255, 0, 0, 0),
          fontSize: 40,
        ),
      ),
    );
  }
}
